#!/usr/bin/env python
import rospy

from rts_database_pysrv.srv import RTSDatabasePysrv

def handle_call_python_function(req):
    result = req.a * req.b
    rospy.loginfo("Result: %d", result)
    return result

if __name__ == "__main__":
    rospy.init_node("rts_database_pysrv_pynode")
    rospy.Service("rts_database_pysrv", RTSDatabasePysrv, handle_call_python_function)
    rospy.spin()